home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual BASIC 5.0 (Ent. Edition) / Vb5ent Extractor.EXE / VB / SAMPLES / PGUIDE / OPTIMIZE / FRMSHOW1.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-09-16  |  3.1 KB  |  98 lines

  1. VERSION 5.00
  2. Begin VB.Form frmShow1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   1425
  5.    ClientLeft      =   1755
  6.    ClientTop       =   2130
  7.    ClientWidth     =   4485
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   8.25
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    ForeColor       =   &H80000008&
  18.    LinkTopic       =   "Form1"
  19.    PaletteMode     =   1  'UseZOrder
  20.    ScaleHeight     =   1425
  21.    ScaleWidth      =   4485
  22.    Begin VB.TextBox txtFooValue 
  23.       Appearance      =   0  'Flat
  24.       BeginProperty Font 
  25.          Name            =   "MS Sans Serif"
  26.          Size            =   12
  27.          Charset         =   0
  28.          Weight          =   700
  29.          Underline       =   0   'False
  30.          Italic          =   0   'False
  31.          Strikethrough   =   0   'False
  32.       EndProperty
  33.       Height          =   450
  34.       Left            =   2310
  35.       TabIndex        =   1
  36.       Top             =   420
  37.       Width           =   1215
  38.    End
  39.    Begin VB.CommandButton cmd 
  40.       Appearance      =   0  'Flat
  41.       BackColor       =   &H80000005&
  42.       Caption         =   "Set Form Variable Foo"
  43.       BeginProperty Font 
  44.          Name            =   "MS Sans Serif"
  45.          Size            =   8.25
  46.          Charset         =   0
  47.          Weight          =   400
  48.          Underline       =   0   'False
  49.          Italic          =   0   'False
  50.          Strikethrough   =   0   'False
  51.       EndProperty
  52.       Height          =   645
  53.       Left            =   600
  54.       TabIndex        =   0
  55.       Top             =   315
  56.       Width           =   1335
  57.    End
  58.    Begin VB.Label Label1 
  59.       Appearance      =   0  'Flat
  60.       AutoSize        =   -1  'True
  61.       BackColor       =   &H80000005&
  62.       BackStyle       =   0  'Transparent
  63.       Caption         =   "="
  64.       BeginProperty Font 
  65.          Name            =   "MS Sans Serif"
  66.          Size            =   13.5
  67.          Charset         =   0
  68.          Weight          =   700
  69.          Underline       =   0   'False
  70.          Italic          =   0   'False
  71.          Strikethrough   =   0   'False
  72.       EndProperty
  73.       ForeColor       =   &H00800000&
  74.       Height          =   360
  75.       Left            =   2010
  76.       TabIndex        =   2
  77.       Top             =   435
  78.       Width           =   195
  79.    End
  80. Attribute VB_Name = "frmShow1"
  81. Attribute VB_GlobalNameSpace = False
  82. Attribute VB_Creatable = False
  83. Attribute VB_TemplateDerived = False
  84. Attribute VB_PredeclaredId = True
  85. Attribute VB_Exposed = False
  86. Option Explicit
  87. Dim iFoo As Integer
  88. Private Sub cmd_Click()
  89.   iFoo = Val(txtFooValue)
  90.   frmShow2.lblStatus.Caption = "Form1.CMD Set iFoo = " & Str$(iFoo)
  91. End Sub
  92. Private Sub Form_Load()
  93.   Me.Left = frmExplore.Width + 600
  94.   Me.Top = (Screen.Height - Me.Height) * 0.3
  95.   txtFooValue = Str$(iFoo)
  96.   frmShow2.lblStatus.Caption = "Form1_Load iFoo = " & Str$(iFoo)
  97. End Sub
  98.